<html>
<head>
<title>firstworks   Programming with Rudiments using the unixsocketserver class</title>
<link href="../css/styles.css" rel="stylesheet">
</head>
<body>

<span class="heading">Programming with Rudiments using the unixsocketserver class</span><br><br>

<p>Daemons are commonly used to serve data to clients over a network but they can also be used to serve data to processes running on the local machine.  This can be done using the inetsocketserver class but if your platform supports unix sockets, then it can be done much faster and more efficiently using the unixsocketserver class.  The example below listens on an unix socket for a client connection, receives a string from the client and writes the same string back to the client.</p>

<img src="../images/traffic_cone.png"/>

<p>Coming soon...</p>

<blockquote class="code">

<script type='text/javascript'>
<!--

-->
</script>
<font face="monospace">
<font color="#2e8b57"><b>int</b></font>&nbsp;main(<font color="#2e8b57"><b>int</b></font>&nbsp;argc,&nbsp;<font color="#2e8b57"><b>const</b></font>&nbsp;<font color="#2e8b57"><b>char</b></font>&nbsp;**argv) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">//&nbsp;</font><span style="background-color: #ffff00"><font color="#0000ff">FIXME</font></span><font color="#0000ff">: example...</font><br>
}<br>
</font>
<!-- vim: set foldmethod=manual : -->
</blockquote>

<p>See the <a href="unixsocketclient.html">unixsocketclient</a> example for a client that can communicate with this server.</p>

</body>
</html>
